// Project name:JavaRedis
// Creator:muhong
// Date time:2023/2/7,5:30 下午
// Name:UnpaddedInternalThreadLocalMap

package org.gmh.util.internal;

import org.gmh.util.IntegerHolder;

import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;

public class UnpaddedInternalThreadLocalMap {

    static final ThreadLocal<InternalThreadLocalMap> slowThreadLocalMap = new ThreadLocal<>();
    static final AtomicInteger nextIndex = new AtomicInteger();

    Object[] indexedVariables;

    int futureListenerStackDepth;
    int localChannelReaderStackDepth;
    Map<Class<?>, Boolean> handlerSharableCache;

    IntegerHolder counterHashCode;
//    ThreadLocalRandom random;

    UnpaddedInternalThreadLocalMap(Object[] indexedVariables){
        this.indexedVariables = indexedVariables;
    }
}
